package com.kyub.spring.gears.model;

/**

 */
public class StructPropertyDescriptor implements PropertyDescriptor {

    private PropertyDescriptor property;

    private FieldLayout layout;

    private String allowedRoles = "ROLE_ANONYMOUS";

    public StructPropertyDescriptor(PropertyDescriptor property, FieldLayout layout) {
        this.property = property;
        this.layout = layout;
    }

    public PropertyDescriptor getProperty() {
        return property;
    }

    public FieldLayout getLayout() {
        return layout;
    }

    public String getName() {
        return property.getName();
    }

    public void setName(String name) {
        System.err.println("No way");
    }

    public String getAllowedRoles() {
        return allowedRoles;
    }

    public void setAllowedRoles(String allowedRoles) {
        this.allowedRoles = allowedRoles;
    }
}
